using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PACKETPARSERMAX20.CORE
{
    public class reserved_name : MangosBase
    {
        public System.String name;




        public override string GetInsertCommand()
        {
            return string.Format("INSERT IGNORE INTO `reserved_name` (`name`) VALUES ('{0}');", name.MySQLDBString());
        }


        public override string GetUpdateCommand()
        {
            StringBuilder sb = new StringBuilder();
            sb.Append("UPDATE `reserved_name` SET ");
            sb = sb.Replace("\r\n", ", ");
            sb.Append(" WHERE `name`='" + name.MySQLDBString() + "';");
            sb = sb.Replace(",  WHERE", " WHERE");

            return sb.ToString();
        }


    }
}
